<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text和v-html 指令</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app"> 
        <h1>{{msg}} </h1>
        <p>{{vtext}} </p>
        <p>{{vhtml}} 哈哈哈</p>
        <p v-html="vhtml"> 哈哈哈哈</p>
        <p v-text="vtext"></p>
    </div>
</body>
</html>
<script>
    let app = new Vue({
        el:'#app',
        data:{
            msg:'hello vue!',
            vtext:'<a href="https://www.baidu.com">百度</a>',
            vhtml:'<a href="https://www.baidu.com">百度</a>'
        }
    })
</script>